﻿using NB.MGJ.Common;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NB.MGJ.Model
{
    /// <summary>
    /// 扫码中奖纪录
    /// </summary>
    public class Marketing_TheWinning
    {
        [Property("Key")]
        public int Id { get; set; }
        public int? ActivityID { get; set; }
        public int? UserID { get; set; }
        public int? AwardsID { get; set; }
        public DateTime? Time { get; set; }
        /// <summary>
        /// 分组ID
        /// </summary>
        public int? Groupid { get; set; }
        /// <summary>
        /// 加密的防伪码
        /// </summary>
        public string JiaMiCode { get; set; }
        public string Code { get; set; }
        public int? BatchID { get; set; }

        /// <summary>
        /// 状态 0 未抽奖 1未领取  2 领奖成功
        /// </summary>
        public int? State { get; set; }

        //面额
        public decimal Denomination { get; set; }

        public string Data { get; set; }
        public int? DataType { get; set; } //1 电信 2 移动 3 联通
        public int? DataId { get; set; }

        public string Remark { get; set; }

        public string Address { get; set; }//当前网络下扫地址
        /// <summary>
        /// 活动标题
        /// </summary>
        [NotMapped]
        public string Title { get; set; }

        //手机号码
        public string Phone { get; set; }

        //name
        [NotMapped]
        public string Name { get; set; }

        //真实姓名
        [NotMapped]
        public string Nickname { get; set; }
        //头像
        [NotMapped]
        public string HeadImgUrl { get; set; }


        //发送总金额
        [NotMapped]
        public decimal sendSumMoney { get; set; }
        [NotMapped]
        public string SendTime { get; set; }
        /// <summary>
        /// 联通
        /// </summary>

        [NotMapped]
        public int? DataID1_LT { get; set; }

        /// <summary>
        /// 移动
        /// </summary>
        [NotMapped]
        public int? DataID2_YD { get; set; }

        /// <summary>
        /// 电信
        /// </summary>
        [NotMapped]
        public int? DataID3_DX { get; set; }

        /// <summary>
        /// 联通
        /// </summary>

        [NotMapped]
        public string Data_LT { get; set; }

        /// <summary>
        /// 移动
        /// </summary>
        [NotMapped]
        public string Data_YD { get; set; }

        /// <summary>
        /// 电信
        /// </summary>
        [NotMapped]
        public string Data_DX { get; set; }
        /// <summary>
        /// 奖项的IDS
        /// </summary>
        [NotMapped]
        public string Ids { get; set; }

        /// <summary>
        /// 祝福语
        /// </summary>
        [NotMapped]
        public string AwCongrats { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [NotMapped]
        public string AwRemark { get; set; }
        /// <summary>
        ///        奖项等级
        /// </summary>
        [NotMapped]
        public string AwardsGrade { get; set; }
        /// <summary>
        /// 奖项图标
        /// </summary>
        [NotMapped]
        public string AwardsIosUrl { get; set; }
        /// <summary>
        /// 奖项名称
        /// </summary>
        [NotMapped]
        public string AwName { get; set; }

        /// 机构名称
        /// </summary>
        [NotMapped]
        public string EnterpriseName { get; set; }

        /// <summary>
        /// 多个用户id        用于指定用户发放红包
        /// </summary>
        [NotMapped]
        public string UserIds { get; set; }

        /// <summary>
        /// 类型 1: 红包 2: 优惠券 3:  流量包 根据奖池一样
        /// </summary>
        [NotMapped]
        public int? type { get; set; }
        /// <summary>
        /// 分组名称
        /// </summary>
           [NotMapped]
        public string GroupName { get; set; }
    }


   

     /// <summary>
     ///    状态 0 未抽奖 1未领取  2 领奖成功
     /// </summary>
    public enum EnumTheWinningState
    {   /// <summary>
        /// 未抽奖
        /// </summary>
        NotDraw =0,
           
         /// <summary>
         /// 未领取
         /// </summary>
        NotGetDraw=1,

        /// <summary>
        /// 领奖成功
        /// </summary>
        GetAwardSucceed = 2  ,

        /// <summary>
        /// 领奖失败
        /// </summary>
        GetAwardErr=3

    }

    public enum EnumTheWinningGroup
    {
        /// <summary>
        /// 指定发放红包
        /// </summary>
        hongBao = 0,
        /// <summary>
        /// 指定发放流量
        /// </summary>
        liuliang = 1,
        /// <summary>
        /// 指定优惠券
        /// </summary>
        youhuijuan = 2,
        /// <summary>
        /// 指定代金券
        /// </summary>
        daijingjuan = 3,


        /// <summary>
        /// 抢红包活动
        /// </summary>
        [EnumDisplay("抢红包")]
        activityRedData  = 500,
        /// <summary>
        /// 九宫格活动
        /// </summary>
        [EnumDisplay("九宫格")]
        activitySudoku = 501,
             
        /// <summary>
        /// 刮刮卡活动
        /// </summary>
        [EnumDisplay("刮刮卡")]
        activityScratchCard = 502



    }
}
